package com.zdgcc.site.service;

import com.zdgcc.site.domain.Member;
import com.zdgcc.site.persistence.LoginMapper;
import com.zdgcc.site.util.Util;


public class LoginService {

	public boolean login(String name,String pwd){
		LoginMapper loginMapper = new LoginMapper();
		Member member = loginMapper.login(name);
		
		String pwdMD5 = Util.getMD5(pwd);
		if(member!=null&& pwdMD5.equals(member.getPwd())){

			return true;
		}
		return false;
	}
	
}
